/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

import java.net.InetAddress;


@SpringBootApplication
@Slf4j
public class RenrenApplication {

	public static void main(String[] args) throws Exception{
		ConfigurableApplicationContext application = SpringApplication.run(RenrenApplication.class, args);

		Environment env = application.getEnvironment();
		log.info("\n----------------------------------------------------------\n\t" +
						"Application '法拍网小程序接口' is running! Access URLs:\n\t" +
						"Doc: \thttp://{}:{}/swagger-ui.html\n" +
						"----------------------------------------------------------",
				InetAddress.getLocalHost().getHostAddress(),
				env.getProperty("server.port"));
	}

}
